package main

import (
	"fmt"
	"log"
)

func main() {
	defer func() {
		p := recover()
		fmt.Printf("%T, %v\n", p, p)
	}()

	//panic类函数会产生panic，如果不recover就会退出程序，退出代码2
	no := []int{6, 8}
	log.Panicln("Println NO.", no)
}
